package com.example.core.form;

import com.example.core.convert.FormToModelPropertyMap;
import com.example.sys.module.annotation.SysField;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public abstract class BaseForm<T> {

    private String fdId;

    @SysField(comment = "名称")
    private String fdName;

    private int limit = 10;

    private int page = 1;

    private FormToModelPropertyMap formToModelPropertyMap = null;

    public FormToModelPropertyMap getToModelPropertyMap() {
        if (this.formToModelPropertyMap == null) {
            this.formToModelPropertyMap = new FormToModelPropertyMap();
        }
        return this.formToModelPropertyMap;
    }

    public abstract Class<?> getModelClass();
}
